package com.bit.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * bit-supper-NetUtil
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/10/12 下午 02:21
 */
public class NetUtil {


    public static String getLocalIp() throws UnknownHostException {
        InetAddress addr = InetAddress.getLocalHost();
        return addr.getHostAddress().toString(); //获取本机ip
    }


}
